using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityDictionarysCreateExtend
{
		public static Dictionarys ToCreateEntity(this RequestDictionarysDto dto)
		{
			return new Dictionarys
			{
				DId = dto.id,
				DValue = dto.value,
				DDictionaryTypeId = dto.dictionaryTypeId,
				DParentId=dto.parentId,
			};
		}
	}
}
